package com.dongdongshop.api;


import com.dongdongshop.data.Result;
import com.dongdongshop.dto.AddressDto;
import com.dongdongshop.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("dongdongshop-user-service")
public interface UserServiceApi {

    @PostMapping("/user/get")
    Result<UserDto> getSellerByName(@RequestParam("username") String username);

    //根据用户Id获取收获地址
    @PostMapping("/address/getAddressById")
    Result<AddressDto> getAddressById(@RequestParam Long arrderssId);
}
